<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>第⼀个 ECharts 实例</title>
    <!-- 引⼊ echarts.js -->
    <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
</head>
<body>
    <div id="main" style="width: 600px;height:400px;"></div>
    <script type="text/javascript">
        var myChart = echarts.init(document.getElementById('main'));
        var option = {
            title: {text: '第⼀个 ECharts 实例'},
            tooltip: {},
            legend: {data:['用户总量展示']},
            xAxis: {data: ["流失用户","回流用户","连续活跃用户","新用户","活跃用户"]},
            yAxis: {},
            series: [{name: '销量', type: 'bar', data: [183472, 6546, 524, 91, 0]}]
        };

        myChart.setOption(option);
    </script>
</body>
</html>